@using BootBlazor.Servers.Resources
@using Microsoft.Extensions.Localization
@using MudBlazor

@inject IStringLocalizer<CommonComponent> _loc;

<MudDialog Gutters="false">
	<DialogContent>
		<div style="width:400px;" class="px-6 py-2">
			<div class="d-flex align-center">
				<MudIcon Icon="@Icons.Material.Filled.Warning" Size="Size.Medium" Class="mr-2"></MudIcon>
				<MudText Typo="Typo.h6">@Title</MudText>
				</div>
				<div class="d-flex align-center mt-6">
					<MudSpacer />
					<MudButton Variant="Variant.Filled" Color="Color.Error" Size="Size.Medium" Disabled="_isLoading" OnClick="ConfirmDelete">
						@if (_isLoading)
					{
						<MudProgressCircular Color="Color.Primary" Size="Size.Small" Indeterminate="true" />
					}
					else
					{
						@ConfirmButtonText
					}
				</MudButton>
			</div>
		</div>
	</DialogContent>
</MudDialog>
